package com.bupt.chapter.first.find_error_machine;

public class Solution {
	public static void main(String[] args) {
		Solution s = new Solution();
		s.findSingle(new int[]{1,2,3,1,2});
	}
	public boolean findSingle(int[] nums){
		int flag = 0;
		for (int i = 0; i < nums.length; i++) {
			flag = flag^nums[i];
		}
		System.out.println(flag);
		
		
		return false;
	}
}
